package com.gsafety.wellsfort.common.enums;

import lombok.Getter;

@Getter
public enum StatusEnum {
    ENABLE(1,"启用"),
    DISABLE(0,"禁用");
    public Integer	value;
    public String	label;

    StatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public static StatusEnum parseVal(Integer value){
        StatusEnum[] enums = StatusEnum.values();
        for(StatusEnum s : enums){
            if(s.getValue().intValue() == value.intValue()){
                return s;
            }
        }
        return null;
    }
}
